package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-17
 */
@TableName("sys_customer_distributor_relation")
@Accessors(chain = true)
@Setter
@Getter
public class SysCustomerDistributorRelation extends Model<SysCustomerDistributorRelation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("customer_id")
    private Long customerId;

    @TableField("parent_customer_id")
    private Long parentCustomerId;

    @TableField("create_time")
    private Date createTime;

    private Integer version;

//    public Long getId() {
//        return id;
//    }
//
//    public SysCustomerDistributorRelation setId(Long id) {
//        this.id = id;
//        return this;
//    }
//    public Long getCustomerId() {
//        return customerId;
//    }
//
//    public SysCustomerDistributorRelation setCustomerId(Long customerId) {
//        this.customerId = customerId;
//        return this;
//    }
//    public Long getParentCustomerId() {
//        return parentCustomerId;
//    }
//
//    public SysCustomerDistributorRelation setParentCustomerId(Long parentCustomerId) {
//        this.parentCustomerId = parentCustomerId;
//        return this;
//    }
//    public Date getCreateTime() {
//        return createTime;
//    }
//
//    public SysCustomerDistributorRelation setCreateTime(Date createTime) {
//        this.createTime = createTime;
//        return this;
//    }
//    public Integer getVersion() {
//        return version;
//    }
//
//    public SysCustomerDistributorRelation setVersion(Integer version) {
//        this.version = version;
//        return this;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysCustomerDistributorRelation{" +
        "id=" + id +
        ", customerId=" + customerId +
        ", parentCustomerId=" + parentCustomerId +
        ", createTime=" + createTime +
        ", version=" + version +
        "}";
    }
}
